<%--
  Created by IntelliJ IDEA.
  User: uyijk
  Date: 2021/9/9
  Time: 14:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style>
        .form1{
            margin-top: 50px;
        }
        .div1{
            text-align: center;
        }
    </style>
</head>
<body>
<c:if test="${not empty msg}">
    <div class="alert alert-danger div1">${msg}</div>
</c:if>


<form class="form-horizontal form1" role="form" action="${pageContext.request.contextPath}/student/update" method="post" >
    <input type="hidden" name="id" value="${student.id}"/>
    <div class="form-group">
        <label for="firstname" class="col-sm-4 control-label">名字</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="firstname"
                   placeholder="请输入名字" name="name" value="${student.name}">
        </div>
    </div>
    <div class="form-group">
        <label for="lastname" class="col-sm-4 control-label">年龄</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="lastname"
                   placeholder="请输入年龄" name="age" value="${student.age}">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-4 col-sm-5">
            <button type="submit" class="btn btn-default">修改</button>
        </div>
    </div>
</form>
</body>
</html>
